package com.hckjsec.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hckjsec.common.annotation.Excel;
import com.hckjsec.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 党建对象 sys_party_building
 * 
 * @author cyt
 * @date 2021-10-12
 */
public class SysPartyBuilding extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long partyId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 党组织名称 */
    @Excel(name = "党组织名称")
    private String partyName;

    /** 所属机构 */
    @Excel(name = "所属机构")
    private Long organization;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String activityName;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date partyBeginTime;

    /** 状态：发布/不发布 */
    @Excel(name = "状态：发布/不发布")
    private String state;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 附件 */
    @Excel(name = "附件")
    private String enclosurepath;

    /** 操作人 */
    @Excel(name = "操作人")
    private Long operator;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operatortime;

    public void setPartyId(Long partyId) 
    {
        this.partyId = partyId;
    }

    public Long getPartyId() 
    {
        return partyId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setPartyName(String partyName) 
    {
        this.partyName = partyName;
    }

    public String getPartyName() 
    {
        return partyName;
    }
    public void setOrganization(Long organization) 
    {
        this.organization = organization;
    }

    public Long getOrganization() 
    {
        return organization;
    }
    public void setActivityName(String activityName) 
    {
        this.activityName = activityName;
    }

    public String getActivityName() 
    {
        return activityName;
    }
    public void setPartyBeginTime(Date partyBeginTime) 
    {
        this.partyBeginTime = partyBeginTime;
    }

    public Date getPartyBeginTime() 
    {
        return partyBeginTime;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setEnclosurepath(String enclosurepath) 
    {
        this.enclosurepath = enclosurepath;
    }

    public String getEnclosurepath() 
    {
        return enclosurepath;
    }
    public void setOperator(Long operator) 
    {
        this.operator = operator;
    }

    public Long getOperator() 
    {
        return operator;
    }
    public void setOperatortime(Date operatortime) 
    {
        this.operatortime = operatortime;
    }

    public Date getOperatortime() 
    {
        return operatortime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("partyId", getPartyId())
            .append("deptId", getDeptId())
            .append("partyName", getPartyName())
            .append("organization", getOrganization())
            .append("activityName", getActivityName())
            .append("partyBeginTime", getPartyBeginTime())
            .append("state", getState())
            .append("content", getContent())
            .append("enclosurepath", getEnclosurepath())
            .append("operator", getOperator())
            .append("operatortime", getOperatortime())
            .toString();
    }
}
